package com.ruoyi.tuser.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 t_user
 *
 * @author ruoyi
 * @date 2024-11-08
 */
public class TUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String userPhone;

    /** 用户密码 */
    @Excel(name = "用户密码")
    private String userPassword;

    private String userImage;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 用户身份证号 */
    @Excel(name = "用户身份证号")
    private String userIdcard;

    /** 用户出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userBirthday;

    /** 用户性别 */
    @Excel(name = "用户性别")
    private String userSex;

    /** 用户状态 */
    @Excel(name = "用户状态")
    private String userState;

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserPhone(String userPhone)
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone()
    {
        return userPhone;
    }
    public void setUserPassword(String userPassword)
    {
        this.userPassword = userPassword;
    }

    public String getUserPassword()
    {
        return userPassword;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setUserIdcard(String userIdcard)
    {
        this.userIdcard = userIdcard;
    }

    public String getUserIdcard()
    {
        return userIdcard;
    }
    public void setUserBirthday(Date userBirthday)
    {
        this.userBirthday = userBirthday;
    }

    public Date getUserBirthday()
    {
        return userBirthday;
    }
    public void setUserSex(String userSex)
    {
        this.userSex = userSex;
    }

    public String getUserSex()
    {
        return userSex;
    }
    public void setUserState(String userState)
    {
        this.userState = userState;
    }

    public String getUserState()
    {
        return userState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userPhone", getUserPhone())
            .append("userPassword", getUserPassword())
            .append("userName", getUserName())
            .append("userIdcard", getUserIdcard())
            .append("userBirthday", getUserBirthday())
            .append("userSex", getUserSex())
            .append("userState", getUserState())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
